package com.bruce.pattern.behavioral.strategy;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by bruce on 2018/11/10 15:31
 */
@Slf4j
public class PromotionActivity {

    private PromotionStrategy promotionStrategy;

    public PromotionActivity(PromotionStrategy promotionStrategy) {
        this.promotionStrategy = promotionStrategy;
    }

    public void execute() {
        log.info("促销活动开始啦");

        promotionStrategy.promotion();

        log.info("促销活动结束啦");
    }


}
